#pragma once
#include "cocos2d.h"
#include "AnimationObject.h"
#include <vector>
#include <string>
class CAnimationSprite:public cocos2d::CCSprite
{
public:
	CAnimationSprite(void);
	~CAnimationSprite(void);
	static CAnimationSprite *node(const std::string arrayPic[],int nNum,float fIntervalTime,bool bRepeat=true); 
protected:
	CAnimationObject *pObject_;
protected:
	bool init(const std::string arrayPic[],int nNum,float fIntervalTime ,bool bRepeat=true);
};
